package com.panels;

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JPanel;

import com.utils.ResourcesLoader;

public class WestPanel extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = -774838659585668547L;

	private JButton nextPageButton;

	public WestPanel()
	{
		nextPageButton=new JButton();
		nextPageButton.addActionListener(new ActionListener(){

			public void actionPerformed(ActionEvent e) {
				MainPanel.getMainPanel().getPagesPanel().displayNextPage();
				
			}});
		initGui();
	}

	private void initGui() {
		ImageIcon imageIcon=ResourcesLoader.getImageIcon("/com/data/images/l_arrow.gif");
		nextPageButton.setIcon(imageIcon);
		nextPageButton.setBorder(null);
		BorderLayout borderLayout= new BorderLayout();
		this.setLayout(borderLayout );
		this.add(nextPageButton);
		

	}

}
